Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Explicitly set chromedriver port. #1124

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

crynobone
Copy link
Member

fixes #1123
fixes #1122

Before 128, ChromeDriver will use the default 9515 port, however this is no longer the case and would cause chromedriver to run on port 0. https://issues.chromium.org/issues/361370192

fixes #1123
fixes #1122

Before 128, ChromeDriver will use the default 9515 port, however this is
no longer the case and would cause chromedriver to run on port 0. https://issues.chromium.org/issues/361370192

Signed-off-by: Mior Muhammad Zaki <[email protected]>
@@ -43,7 +43,8 @@ protected function setUp(): void
protected function driver()
{
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::chrome()
$_ENV['DUSK_DRIVER_URL'] ?? env('DUSK_DRIVER_URL') ?? 'http://localhost:9515',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replicate line from stub file:

$_ENV['DUSK_DRIVER_URL'] ?? env('DUSK_DRIVER_URL') ?? 'http://localhost:9515',

@taylorotwell taylorotwell merged commit e641800 into 8.x Aug 26, 2024
20 checks passed
@taylorotwell taylorotwell deleted the explicit-chromedriver-port branch August 26, 2024 12:34
underdpt added a commit to underdpt/laravel-console-dusk that referenced this pull request Aug 27, 2024
Chrome version 128 doesn't have a default port 9515 so dusk fails to connect to it.

See: laravel/dusk#1124
owenvoke pushed a commit to nunomaduro/laravel-console-dusk that referenced this pull request Aug 27, 2024
Chrome version 128 doesn't have a default port 9515 so dusk fails to connect to it.

See: laravel/dusk#1124
@KieranLR
Copy link

fyi, this is the commit that confirms this is an intentional change in ChromeDriver behavior: https://chromium.googlesource.com/chromium/src/+/6f33d75f071e322c4a3e49b0a4ac2022e5b6cada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants